package com.study.usercenter.library;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "order-center", fallback = OrderFeignFail.class)
public interface OrderFeign {

    @RequestMapping(value = "/order/info/{id}", method = RequestMethod.GET)
    public String getOrderInfo(@PathVariable("id") Integer id) ;

}
